package com.ngkj.zmfptback.business.service.write;

import com.jcraft.jsch.JSchException;
import com.jcraft.jsch.SftpException;
import com.ngkj.zmfptback.business.bean.RentalRequestEntiry;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @author ChenHN
 * @since 2021/12/31 creation
 **/
public interface RentalWriteService {

    /**
     * 同意审批
     * @param list
     */
    void agreeRentals(List<String> list);

    /**
     * 全部同意审批
     */
    void agreeAllRental();

    /**
     * 拒绝审批
     * @param list
     */
    void refusedRentals(List<String> list);

    /**
     * 发布房源
     * @param rentalRequestEntiry
     * @param files
     */
    void addRentalInfo(RentalRequestEntiry rentalRequestEntiry, MultipartFile[] files) throws Exception;

    /**
     * 取消发布
     * @param czfxxlsh
     */
    void cancelRental(Long czfxxlsh);
}
